package com.change.study.data.service;

import com.change.study.data.core.Pagination;
import com.change.study.data.dto.PostsPageRpc;
import com.change.study.data.entity.Posts;
import com.openyelp.annotation.RestFul;


@RestFul(api=PostsService.class,value="PostsService")
public interface PostsService {
	public Pagination getPage(int pageNo, int pageSize);

	public Posts findById(Long id);

	public Posts save(Posts bean);
	public Posts comment(Posts bean);

	public Posts update(Posts bean);

	public Posts deleteById(Long id);
	
	public Posts[] deleteByIds(Long[] ids);
	
	PostsPageRpc pageCommentById(long id,int pageNo, int pageSize);
	PostsPageRpc page(int pageNo, int pageSize);

}